import AppUserProfileImageUrls from "./AppUserProfileImageUrls.js"

/**
 * 用户基本信息类
 */
export default class AppUserBasicInfo {
    /**
     * 用户ID
     * @type {string}
     */
    id

    /**
     * 用户名
     * @type {string}
     */
    name

    /**
     * 用户账号
     * @type {string}
     */
    account

    /**
     * 头像URL集合
     * @type {AppUserProfileImageUrls}
     */
    profile_image_urls

    /**
     * 用户评论
     * @type {string}
     */
    comment

    /**
     * 是否已关注
     * @type {boolean}
     */
    is_followed

    /**
     * 是否被用户屏蔽
     * @type {boolean}
     */
    is_access_blocking_user

    constructor(data) {
        this.id = data.id
        this.name = data.name
        this.account = data.account
        this.profile_image_urls = new AppUserProfileImageUrls(data.profile_image_urls)
        this.comment = data.comment
        this.is_followed = data.is_followed
        this.is_access_blocking_user = data.is_access_blocking_user
    }
}
